package com.guodexiain.nyiotclient.mapper;

import com.guodexiain.nyiotclient.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Insert("insert into t_user(id,user_name,pass_word) values(#{id},#{name}, #{password})")
    User save(User user);
     @Select("select * from t_user where user_name=#{name} and pass_word=#{password}")
    User findByNameAndPwd(User user);
}
